package tests;

import tester.*;

@Example
public class ReferenceTests {

	@TestMethod
	public void testReferences(Tester t){
		Duck bill = new Duck("Bill");
		Duck[] duckArray = new Duck[]{bill, bill, new Duck("Chuck")};
		bill.duckArray = duckArray;
		
		t.checkEffect(bill, "setName", new Arguments("Chuck"), new EffectField("name", "Chuck"));
	}
}

class Duck{
	Duck[] duckArray;
	String name;
	
	public Duck(String name){
		this.name = name;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	
}
